/**
 * 
 */
package cn.tonyqiu.wonuly.client.util;

import java.util.Date;

import com.google.gwt.i18n.client.DateTimeFormat;

/**
 * @author <a href="mailto:tony.qiu.smart@gmail.com">Tony Qiu</a>
 *
 */
public class DateTimeFormater {
	
	public static DateTimeFormat dtf = DateTimeFormat.getFormat("yyyy-MM-dd");
	
	public static String format(Date date) {
		return dtf.format(date);
	}
	
	public static Date parse(String source) {
		return dtf.parse(source);
	}

}
